xen/arm: mm: Clean-up mfn_to_xen_entry
authorJulien Grall <julien.grall@arm.com>
Tue, 13 Jun 2017 16:13:06 +0000 (17:13 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 15 Jun 2017 23:52:59 +0000 (16:52 -0700)
commit7ddc55f2e3ecab095a99221971b56e1fbf85d803
tree14d93397d1c4b73a5f306254e5e748745d33cf94
parentb8d6b337d945de9cc5a29b50bf5c6adfe0d4d3df
xen/arm: mm: Clean-up mfn_to_xen_entry

The physical address is computed from the machine frame number, so
checking if the physical address is page aligned is pointless.

Furthermore, directly assigned the MFN to the corresponding field in the
entry rather than converting to a physical address and orring the value.
It will avoid to rely on the field position and make the code clearer.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/mm.c